Optimal. Leaf size=82 \[ -\frac {a^5 x^{-4 n}}{4 n}-\frac {5 a^4 b x^{-3 n}}{3 n}-\frac {5 a^3 b^2 x^{-2 n}}{n}-\frac {10 a^2 b^3 x^{-n}}{n}+\frac {b^5 x^n}{n}+5 a b^4 \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {272, 45}
\begin {gather*} -\frac {a^5 x^{-4 n}}{4 n}-\frac {5 a^4 b x^{-3 n}}{3 n}-\frac {5 a^3 b^2 x^{-2 n}}{n}-\frac {10 a^2 b^3 x^{-n}}{n}+5 a b^4 \log (x)+\frac {b^5 x^n}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rubi steps
\begin {align*} \int x^{-1-4 n} \left (a+b x^n\right )^5 \, dx &=\frac {\text {Subst}\left (\int \frac {(a+b x)^5}{x^5} \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \left (b^5+\frac {a^5}{x^5}+\frac {5 a^4 b}{x^4}+\frac {10 a^3 b^2}{x^3}+\frac {10 a^2 b^3}{x^2}+\frac {5 a b^4}{x}\right ) \, dx,x,x^n\right )}{n}\\ &=-\frac {a^5 x^{-4 n}}{4 n}-\frac {5 a^4 b x^{-3 n}}{3 n}-\frac {5 a^3 b^2 x^{-2 n}}{n}-\frac {10 a^2 b^3 x^{-n}}{n}+\frac {b^5 x^n}{n}+5 a b^4 \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 77, normalized size = 0.94 \begin {gather*} \frac {x^{-4 n} \left (-3 a^5-20 a^4 b x^n-60 a^3 b^2 x^{2 n}-120 a^2 b^3 x^{3 n}+12 b^5 x^{5 n}\right )}{12 n}+\frac {5 a b^4 \log \left (x^n\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.23, size = 79, normalized size = 0.96
method | result | size |
risch | \(5 a \,b^{4} \ln \left (x \right )+\frac {b^{5} x^{n}}{n}-\frac {10 a^{2} b^{3} x^{-n}}{n}-\frac {5 a^{3} b^{2} x^{-2 n}}{n}-\frac {5 a^{4} b \,x^{-3 n}}{3 n}-\frac {a^{5} x^{-4 n}}{4 n}\) | \(79\) |
norman | \(\left (\frac {b^{5} {\mathrm e}^{5 n \ln \left (x \right )}}{n}+5 a \,b^{4} \ln \left (x \right ) {\mathrm e}^{4 n \ln \left (x \right )}-\frac {a^{5}}{4 n}-\frac {10 a^{2} b^{3} {\mathrm e}^{3 n \ln \left (x \right )}}{n}-\frac {5 a^{3} b^{2} {\mathrm e}^{2 n \ln \left (x \right )}}{n}-\frac {5 a^{4} b \,{\mathrm e}^{n \ln \left (x \right )}}{3 n}\right ) {\mathrm e}^{-4 n \ln \left (x \right )}\) | \(97\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 84, normalized size = 1.02 \begin {gather*} 5 \, a b^{4} \log \left (x\right ) + \frac {b^{5} x^{n}}{n} - \frac {a^{5}}{4 \, n x^{4 \, n}} - \frac {5 \, a^{4} b}{3 \, n x^{3 \, n}} - \frac {5 \, a^{3} b^{2}}{n x^{2 \, n}} - \frac {10 \, a^{2} b^{3}}{n x^{n}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 77, normalized size = 0.94 \begin {gather*} \frac {60 \, a b^{4} n x^{4 \, n} \log \left (x\right ) + 12 \, b^{5} x^{5 \, n} - 120 \, a^{2} b^{3} x^{3 \, n} - 60 \, a^{3} b^{2} x^{2 \, n} - 20 \, a^{4} b x^{n} - 3 \, a^{5}}{12 \, n x^{4 \, n}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 486 vs.
\(2 (73) = 146\).
time = 70.20, size = 486, normalized size = 5.93 \begin {gather*} \begin {cases} a^{5} x + \frac {20 a^{4} b x^{\frac {3}{4}}}{3} + 20 a^{3} b^{2} \sqrt {x} + 40 a^{2} b^{3} \sqrt [4]{x} - 20 a b^{4} \log {\left (\frac {1}{\sqrt [4]{x}} \right )} - \frac {4 b^{5}}{\sqrt [4]{x}} & \text {for}\: n = - \frac {1}{4} \\\left (a + b\right )^{5} \log {\left (x \right )} & \text {for}\: n = 0 \\- \frac {12 a^{5} n}{48 n^{2} x^{4 n} + 12 n x^{4 n}} - \frac {3 a^{5}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} - \frac {80 a^{4} b n x^{n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} - \frac {20 a^{4} b x^{n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} - \frac {240 a^{3} b^{2} n x^{2 n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} - \frac {60 a^{3} b^{2} x^{2 n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} - \frac {480 a^{2} b^{3} n x^{3 n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} - \frac {120 a^{2} b^{3} x^{3 n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} + \frac {240 a b^{4} n x^{4 n} \log {\left (x^{n} \right )}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} + \frac {60 a b^{4} n x^{4 n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} + \frac {60 a b^{4} x^{4 n} \log {\left (x^{n} \right )}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} + \frac {48 b^{5} n x^{5 n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} + \frac {12 b^{5} x^{5 n}}{48 n^{2} x^{4 n} + 12 n x^{4 n}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.08, size = 77, normalized size = 0.94 \begin {gather*} \frac {60 \, a b^{4} n x^{4 \, n} \log \left (x\right ) + 12 \, b^{5} x^{5 \, n} - 120 \, a^{2} b^{3} x^{3 \, n} - 60 \, a^{3} b^{2} x^{2 \, n} - 20 \, a^{4} b x^{n} - 3 \, a^{5}}{12 \, n x^{4 \, n}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.41, size = 84, normalized size = 1.02 \begin {gather*} \frac {b^5\,x^n}{n}+5\,a\,b^4\,\ln \left (x\right )-\frac {a^5}{4\,n\,x^{4\,n}}-\frac {10\,a^2\,b^3}{n\,x^n}-\frac {5\,a^3\,b^2}{n\,x^{2\,n}}-\frac {5\,a^4\,b}{3\,n\,x^{3\,n}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________